

<div class="conteudo">
<div class="alinha-criarnoticia">
    
    <div class="titu-criarnoticia">Editar itens da página</div>
    
    
      
<?php
//// ---------- -------- ------ Area para validação de erros ---------- --------------- ------------- ------------------ --------- --------- ---------
echo validation_errors('<center><div class="aviso" style="width:100%;background-color:#FFFFCC;
                        font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;height:50px;
                        line-height:50px;text-align:center;z-index:999; position:absolute; "><span style="color:red; 
                        text:center">','</span></div></center><BR>');
//// ---------- -------- ------ FIM Area para validação de erros ---------- --------------- ------------- ------------------ --------- --------- ---------

//// ---------- -------- ------ Area para validação mensagens em sessão ---------- --------------- ------------- ------------------ --------- --------- ---------  
    if(isset($_SESSION['msg422'])){
        echo '<center><div class="aviso" style="width:480px;background-color:#FFFFCC;
                        font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;height:50px;
                        line-height:50px;text-align:center;z-index:999; position:absolute; "><span style="color:red; 
                        text:center">'.$_SESSION['msg422'].'</span></div></center>';
    }    
//// ---------- -------- ------ FIM Area para validação mensagens em sessão ---------- --------------- ------------- ------------------ --------- --------- ---------  


?>
        
    <?php
    foreach ($registro as $pag){
    ?>
    <div style="margin: auto ; margin-left: 140px">
        <?php
        if($pag->pag_img <> 'n'){
        ?>
            <BR>
            <form name="input" action="<?php echo base_url('meu_painel_de_administracao/pagina/apagar_img_item/'.$pg.'/'.$id.'/'.$id_pai); ?>" method="POST">

            <img src="<?php echo base_url('assets/img_pagina/'.$pag->pag_img)?>" width="74" height="128" style=" margin: auto"/>   

            <BR><BR><BR>
            <div class="criar-criarnoticia"><input type="image" src="<?php echo base_url('assets/adm/imagens/apagar.png')?>" value="submit" width="61" height="21"></a></div>
            <div class="cancelar-criarnoticia"><a href="<?php echo (base_url("meu_painel_de_administracao/pagina/index/".$pg.'/'.$id_pai.'/1')); ?>"><img src="<?php echo base_url('assets/adm/imagens/cancelar.png')?>" width="67" height="21" /></a></div>

            </form>
        <?php
        }if($pag->pag_img == 'n'){
        ?>
            Obs: A imagem deverá ter no máximo 75 X 130px.              
            <?php
            echo form_open_multipart(base_url('meu_painel_de_administracao/pagina/salvar_item/'.$pg.'/'.$id.'/'.$id_pai.'/3'));

            $parametros_campo = array(
            'name'        => 'userfile',
            'id'          => 'userfile',
            'size'        => '800',
            'style'       => 'width:300px; margin-top:10px; margin-left: 0px; margin-bottom:10px',
            'type'        => 'file' ,
            'value'       => ''
            );
            echo form_upload($parametros_campo);
            ?>
            <BR><BR>
            <div class="criar-criarnoticia"><input type="image" src="<?php echo base_url('assets/adm/imagens/salvar.png')?>" value="submit" width="61" height="21"></a></div>
            <div class="cancelar-criarnoticia"><a href="<?php echo (base_url("meu_painel_de_administracao/pagina/index/".$pg.'/'.$id_pai.'/1')); ?>"><img src="<?php echo base_url('assets/adm/imagens/cancelar.png')?>" width="67" height="21" /></a></div>

            <?php       
            echo form_close();
            ?>   

        <?php
        }
        ?>
        </div>  
    <?php
    }
    ?>   
            
    <BR><BR>
        
    
<!--alinha-criarnoticia-->
</div>

<!--conteudo-->
</div>

<div class="clear"></div>
